cd $(dirname "$0")
# 主诉
ssh da@$DATA_SERVER_IP "scp /home/da/pattern_data/t_qb_symptom_array_2.txt analysis@$LOCAL_IP:$(pwd)"
ssh da@$DATA_SERVER_IP "scp /home/da/pattern_data/t_qb_element_16.txt analysis@$LOCAL_IP:$(pwd)"
# di的元素  不初始化
# ssh da@$DATA_SERVER_IP "scp /home/da/pattern_data/t_qb_element_di_16.txt analysis@$LOCAL_IP:$(pwd)"
cp t_qb_symptom_array_2.txt /home/analysis/data/vocab/array_$(date "+%Y-%m-%d").txt
cp t_qb_element_16.txt /home/analysis/data/vocab/element_$(date "+%Y-%m-%d").txt

# 从hive中导出原因词数据到本地（主诉原因词）
ssh da@$DATA_SERVER_IP "hadoop fs -cat /user/hive/warehouse/t_wz_element_reason_3/*" > /home/analysis/data/vocab/t_wz_element_reason_3.txt

# 现病史-主诉
ssh da@$DATA_SERVER_IP "scp /home/da/pattern_data/t_qb_element_xbs_16.txt analysis@$LOCAL_IP:$(pwd)"
ssh da@$DATA_SERVER_IP "scp /home/da/pattern_data/t_qb_element_xbs_19.txt analysis@$LOCAL_IP:$(pwd)"
cp t_qb_element_xbs_16.txt /home/analysis/data/vocab/xbs_element_$(date "+%Y-%m-%d").txt
cp t_qb_element_xbs_19.txt /home/analysis/data/vocab/xbs_reason_$(date "+%Y-%m-%d").txt

$MYSQL_CON < symptom_init.sql